package net.model.command;

public class Test {

	public static void main(String[] args) {
		
		CommandReciver cmdReciver = new CommandReciver();
		
		Light light = new Light();
		cmdReciver.setCommand(new LightOnCommand(light), new LightOffCommand(light));
		cmdReciver.executeOn();
		cmdReciver.undoCommand();
		cmdReciver.executeOff();
		cmdReciver.undoCommand();
	}
}
